<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title></title>
</head>

<body>
  <div id="test"></div>
</body>

<script>
  import Vue from 'vue'
  import Test from './test'

  Notification.requestPermission(function (permission) {
    if (permission === 'granted') {
      // eslint-disable-next-line no-new
      new Notification('您有一条新的消息', {
        body: '你好啊！我在测试桌面推送'
      })
    }
  })

  const app = new Vue(Test).$mount('#test')

  app.text = 'Electron Forge with Vue.js!'
</script>

</html>